random hex color python

33

import random
r = lambda: random.randint(0,255)
print('#%02X%02X%02X' % (r(),r(),r()))

Comments

Submit
0 Comments